home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4026 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: phcoms4.seri.philips.nl!server10!aaltenm
  2. From: aaltenm@server10.seri.philips.nl (Aalten P.M. van)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: OpenScreen (need help)
  5. Date: 16 Feb 1996 07:58:43 GMT
  6. Organization: Philips Electronics BV.
  7. Distribution: world
  8. Message-ID: <4g1dfj$m09@phcoms4.seri.philips.nl>
  9. References: <4fvg6f$djf@toad.stack.urc.tue.nl>
  10. NNTP-Posting-Host: host-153-39.ce.philips.nl
  11. X-Newsreader: Tin 1.1 PL4
  12.  
  13. jaco@stack.urc.tue.nl (Jaco Schoonen) writes:
  14. : Juergen "Rally" Fischer (fischerj@informatik.tu-muenchen.de) wrote:
  15. : : |> 
  16. : : |> Why don't you use the constants defined in the includes? Much more
  17. : : |> system-friendly...
  18. : : huh ? he asked for how to use openscreen. what is sytem unfriendly ?
  19. : Yeah right, it's just better to keep the constant names in your source
  20. : instead of using the actual values. If those values ever change you just
  21. : have to recompile. Not that they will ever change, but in any case it makes
  22. : the source much more readable...
  23. : --
  24. : Jaco Schoonen
  25. : (jaco@stack.urc.tue.nl)
  26.  
  27. Euhhh... WOW! I always thought I had to define PI as 3.141592653 just in case
  28. scientists discover a new value for PI. May I suggest PI = 2? Makes coding a
  29. bit easier!
  30.  
  31. It is only since I've got 4Mb fastmem that I use these includes. Before that,
  32. adding one 'include' command in my asm program would include 30 other files,
  33. using a total of 300kb of memory. Making a constants-list at the top of the
  34. source was an alternative, but when you're a bit lazy like I am, you just put
  35. the values right in the source. This does result in a less readable source...
  36.  
  37. So... my advice: if you have enough memory, include the include-files. If you
  38. don't, make a constants-list at the top of your source.
  39.  
  40. Greetings,
  41.  
  42. Matthijs van Aalten,
  43. E-mail: aaltenm@iclab.ce.philips.nl
  44.  
  45.